<style>
    html {
        background-color: #ffffff;
    }
</style>
<div class="wrap">
    <div class="layui-fluid meet-user-view">
        <table id="w0" class="layui-table" lay-even="" lay-size="sm">
            <tbody>
            <tr>
                <th>编号</th>
                <td>{{.Data.attachmentModel.Id}}</td>
            </tr>
            <tr>
                <th>所属分类</th>
                <td>{{.Data.attachmentModel.CateName}}</td>
            </tr>
            <tr>
                <th>驱动</th>
                <td>{{.Data.attachmentModel.Drive}}</td>
            </tr>
            <tr>
                <th>上传类型</th>
                <td>{{.Data.attachmentModel.UploadType}}</td>
            </tr>
            <tr>
                <th>本地路径</th>
                <td>
                    {{if eq .Data.attachmentModel.UploadType "图片"}}
                        <img style="width:100px;height:100px;cursor:pointer" src = "/resource/{{.Data.attachmentModel.Path}}" alt="">
                    {{else}}
                        <span style="cursor: pointer;color: #00A0E9" onclick="window.open('/resource/{{.Data.attachmentModel.Path}}')">{{.Data.attachmentModel.Path}}</span>
                    {{end}}
                </td>
            </tr>
            <tr>
                <th>md5校验码</th>
                <td>{{.Data.attachmentModel.Md5}}</td>
            </tr>
            <tr>
                <th>文件原始名</th>
                <td>{{.Data.attachmentModel.Name}}</td>
            </tr>
            <tr>
                <th>扩展名</th>
                <td >{{.Data.attachmentModel.Extension}}</td>
            </tr>
            <tr>
                <th>长度</th>
                <td >{{.Data.attachmentModel.Size}}</td>
            </tr>
            <tr>
                <th>年份</th>
                <td >{{.Data.attachmentModel.Year}}</td>
            </tr>
            <tr>
                <th>月份</th>
                <td >{{.Data.attachmentModel.Month}}</td>
            </tr>
            <tr>
                <th>日</th>
                <td >{{.Data.attachmentModel.Day}}</td>
            </tr>
            <tr>
                <th>宽度</th>
                <td >{{.Data.attachmentModel.Width}}</td>
            </tr>
            <tr>
                <th>高度</th>
                <td >{{.Data.attachmentModel.Height}}</td>
            </tr>
            <tr>
                <th>上传者ip</th>
                <td >{{.Data.attachmentModel.UploadIp}}</td>
            </tr>
            <tr>
                <th>状态</th>
                <td>{{.BuildIn.StatusName .Data.attachmentModel.Status}}</td>
            </tr>
            <tr>
                <th>创建时间</th>
                <td>{{.Data.attachmentModel.CreatedAt}}</td>
            </tr>
            <tr>
                <th>更新时间</th>
                <td>{{.Data.attachmentModel.UpdatedAt}}</td>
            </tr>
            </tbody>
        </table>
    </div>
</div>